﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="RenReportEntry.aspx.vb" Inherits="RenReportEntry" title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    
    <h1>Ren Report Entry</h1>
    <hr />    
    <a name="#Error"></a>
    <asp:UpdatePanel ID="udpRenReport" runat="server">
    <ContentTemplate> 
   <div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>
    <p><%--Description of the page--%></p>
    <asp:Label ID="lblRenReportUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <asp:Label ID="lblDocType" runat="server" Visible="true" />  
    <asp:Label ID="lblCreateBy" runat="server" Visible="false" />
    <asp:Panel ID="pnlInput" runat="server">
        <table class="form-table" cellpadding="5" cellspacing="5">
            <tr>
                <th scope="row" style="width: 250px">
                    Date :
                </th>
                <td>
                    <asp:Textbox ID="lblDate" runat="server" width="300px" onKeyPress="javascript: return false;" onPaste="javascript: return false;" onKeyDown="javascript: return false;" ReadOnly="false"/>
                    <asp:ImageButton runat="Server" ID="imgRescheduleDateCal" AlternateText="Click to reschedule date" ImageUrl="~/images/style01/Btn-calendar.png" />
                    <cc1:CalendarExtender ID="ceRescheduleDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="lblDate" PopupButtonID="imgRescheduleDateCal" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Report Type :
                </th>
                <td>
                    <asp:DropDownList ID="ddlInput" runat="server" AutoPostBack="true" Width="300px">
                    <asp:ListItem Value="1" Text="Report Entry" Selected="True"></asp:ListItem>
                    <asp:ListItem Value="2" Text="Reminder"></asp:ListItem>
                    </asp:DropDownList><span style="color: Red">*</span>
                    <asp:RequiredFieldValidator ID="rfvddlInput" ControlToValidate="ddlInput"
                        SetFocusOnError="true" runat="server" ValidationGroup="RenReport" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
        </table>
        <br />       
    </asp:Panel>
    <div class="form-container" id="divContentGeneral" runat="server">
        <table width="100%"><tr><td class="General-info-title" style="width:150px;"><h3>General Information</h3></td><td><div class="General-info-title-line"></div></td></tr></table>
        <table class="form-table" cellpadding="5" cellspacing="5">
            <tr id="trUpdate" runat="server">
                <th scope="row" style="width: 250px">
                    Name :
                </th>
                <td>
                    <asp:DropDownList ID="ddlName" runat="server" AutoPostBack="true" Width="300px" />&nbsp;&nbsp;<asp:Button ID="btnNew" runat="server" CssClass="search-btn" Text="New" /><span style="color: Red">*</span>
                </td>
            </tr>
            <tr id="trNew" runat="server">
                <th scope="row" style="width: 250px">
                    Name :
                </th>
                <td>
                    <asp:TextBox ID="txtName" runat="server" Width="300px" />&nbsp;&nbsp;<asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="search-btn" />
                    <span style="color: Red">*</span><asp:RequiredFieldValidator ID="rfvtxtName" ControlToValidate="txtName"
                        SetFocusOnError="true" runat="server" ValidationGroup="RenReport" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Phone :
                </th>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server" Width="300px" onkeypress="return isNumberKeyOnly(event)"
                        onpaste="return false;" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Mobile :
                </th>
                <td>
                    <asp:TextBox ID="txtMobile" runat="server" Width="300px" onkeypress="return isNumberKeyOnly(event)"
                        onpaste="return false;" MaxLength="10" /><span style="color: Red">*</span>
                    <asp:RequiredFieldValidator ID="rfvtxtMobile" ControlToValidate="txtMobile"
                        SetFocusOnError="true" runat="server" ValidationGroup="RenReport" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Fax :
                </th>
                <td>
                    <asp:TextBox ID="txtFax" runat="server" Width="300px" onkeypress="return isNumberKeyOnly(event)"
                        onpaste="return false;" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Company :
                </th>
                <td>
                    <asp:TextBox ID="txtCompany" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Email :
                </th>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Address :
                </th>
                <td>
                    <asp:TextBox ID="txtAddress" runat="server" Width="300px" />
                </td>                
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Status :
                </th>
                <td>
                    <asp:DropDownList ID="ddlStatus" runat="server" Width="300px">
                        <asp:ListItem Text="-SELECT-" Value="" />
                        <asp:ListItem Text="Active" Value="0" />
                        <asp:ListItem Text="Inactive" Value="1" />
                        <asp:ListItem Text="On Hold" Value="2" />
                        <asp:ListItem Text="Closed" Value="3" />
                    </asp:DropDownList><span style="color: Red">*</span>
                    <asp:RequiredFieldValidator ID="rfvddlStatus" ControlToValidate="ddlStatus"
                        SetFocusOnError="true" runat="server" ValidationGroup="RenReport" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>                
            </tr>
        </table>
        <br />
         </div>
        <div class="form-container" id="divContentProperty" runat="server">
        <table style="width:100%;" >
            <tr><td style="width:150px;"><div class="General-info-title"><h3>Property Information</h3></div></td>
            <td><div class="General-info-title-line"></div></td>
            </tr>
        </table>
        <table cellpadding="5" cellspacing="5" class="form-table">
            <tr>
                <th scope="row" style="width: 250px">
                    Country :
                </th>
                <td class="style1">
                    <asp:DropDownList ID="ddlCountry" runat="server" AutoPostBack="true" Width="300px"></asp:DropDownList>
                    <span style="color: Red">*</span><asp:RequiredFieldValidator ID="rfvddlCountry" ControlToValidate="ddlCountry"
                        SetFocusOnError="true" runat="server" ValidationGroup="Property" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    State :
                </th>
                <td class="style1">
                    <asp:DropDownList ID="ddlState" runat="server" AutoPostBack="true" Width="300px"></asp:DropDownList>
                    <span style="color: Red">*</span><asp:RequiredFieldValidator ID="rfvddlState" ControlToValidate="ddlState"
                        SetFocusOnError="true" runat="server" ValidationGroup="Property" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Location :
                </th>
                <td class="style1">
                    <asp:DropDownList ID="ddlLocation" runat="server" AutoPostBack="true" Width="300px"></asp:DropDownList>
                    <span style="color: Red">*</span><asp:RequiredFieldValidator ID="rfvddlLocation" ControlToValidate="ddlLocation"
                        SetFocusOnError="true" runat="server" ValidationGroup="Property" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Road :
                </th>
                <td class="style1">
                    <asp:DropDownList ID="ddlRoad" runat="server" AutoPostBack="true" Width="300px"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Project :
                </th>
                <td class="style1">
                    <asp:DropDownList ID="ddlProject" runat="server" AutoPostBack="true" Width="300px"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Property Type :
                </th>
                <td class="style1">
                    <asp:DropDownList ID="ddlPropertyType" runat="server" AutoPostBack="true"></asp:DropDownList>
                </td>
            </tr>  
            <tr>
                <th scope="row" style="width: 250px">
                    List Type :
                </th>
                <td class="style1">
                    <asp:DropDownList ID="ddlListType" runat="server" Width="300px">
                        <asp:ListItem Text="-SELECT-" Value="" />
                        <asp:ListItem Text="SR - Sales Residential" Value="0" />
                        <asp:ListItem Text="SC - Sales Commercial" Value="1" />
                        <asp:ListItem Text="SI - Sales Industrial" Value="2" />
                        <asp:ListItem Text="SL - Sales Land" Value="3" />
                        <asp:ListItem Text="RR - Rent Residential" Value="4" />
                        <asp:ListItem Text="RC - Rent Commercial" Value="5" />
                        <asp:ListItem Text="RI - Rent Industrial" Value="6" />
                        <asp:ListItem Text="RL - Rent Land" Value="7" />
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Price Range :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtPriceFrom" runat="server" Width="300px" /> to <asp:TextBox ID="txtPriceTo" width="300px" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="2"><asp:Button ID="btnAddMore" runat="server" Text="Add More" ValidationGroup="Property" CssClass="search-btn" /></td>
            </tr>
            <tr>
                <td colspan="2">
                    <table>
                        <tr>
                            <th>Country</th>
                            <th>State</th>
                            <th>Location</th>
                            <th>Road</th>
                            <th>Project</th>
                            <th>Property Type</th>
                            <th>List Type</th>
                            <th>Price From</th>
                            <th>Price To</th>
                            <th></th>                            
                        </tr>
                        <asp:Repeater ID="repProperty" runat="server">
                            <ItemTemplate>
                             <tr>
                                <td width="160px">
                                    <asp:Label ID="lblhidRepRenProId" runat="server" Visible="false" Text='<%#Container.dataitem("RenProId").tostring %>' />
                                    <asp:Label ID="lblhidRepStatus" runat="server" Visible="false" Text='<%#Container.dataitem("Status").tostring %>' />
                                    <asp:Label ID="lblhidRepVisible" runat="server" Visible="false" Text='<%#Container.dataitem("Visible").tostring %>' />
                                    <asp:Label ID="lbtRepCountry" runat="server" Text='<%#Container.dataitem("Country").tostring %>' />
                                    <asp:Label ID="lblRepCountryValue" runat="server" Text='<%#Container.dataitem("CountryId").tostring %>' visible="false" />
                                </td>
                                <td width="160px">
                                    <asp:Label ID="lbtRepState" runat="server" Text='<%#Container.dataitem("State").tostring %>' />
                                    <asp:Label ID="lblRepStateValue" runat="server" Text='<%#Container.dataitem("StateId").tostring %>' visible="false" />
                                </td>
                                <td width="160px">
                                    <asp:Label ID="lbtRepLocation" runat="server" Text='<%#Container.dataitem("Location").tostring %>' />
                                    <asp:Label ID="lblRepLocationValue" runat="server" Text='<%#Container.dataitem("LocationId").tostring %>' visible="false" />
                                </td>
                                <td width="160px">
                                    <asp:Label ID="lbtRepRoad" runat="server" Text='<%#Container.dataitem("Road").tostring %>' />
                                    <asp:Label ID="lblRepRoadValue" runat="server" Text='<%#Container.dataitem("RoadId").tostring %>' visible="false" />
                                </td>
                                <td width="160px">
                                    <asp:Label ID="lbtRepProject" runat="server" Text='<%#Container.dataitem("Project").tostring %>' />
                                    <asp:Label ID="lblRepProjectValue" runat="server" Text='<%#Container.dataitem("ProjectId").tostring %>' visible="false" />
                                </td>
                                <td width="160px">
                                    <asp:Label ID="lbtRepPropertyType" runat="server" Text='<%#Container.dataitem("PropertyType").tostring %>' />
                                    <asp:Label ID="lblRepPropertyTypeValue" runat="server" Text='<%#Container.dataitem("PropertyTypeId").tostring %>' visible="false" />
                                </td>
                                <td width="160px">
                                    <asp:Label ID="lbtRepListType" runat="server" Text='<%#Container.dataitem("ListType").tostring %>' />
                                    <asp:Label ID="lblRepListTypeValue" runat="server" Text='<%#Container.dataitem("ListTypeId").tostring %>' visible="false" />
                                </td>                               
                                <td width="160px">
                                   <asp:Label ID="lbtRepPriceFrom" runat="server" Text='<%#Bind("PriceFrom","{0:#,##0.00}") %>' />
                                </td>
                                <td width="160px">
                                    <asp:Label ID="lbtRepPriceTo" runat="server" Text='<%#Bind("PriceTo","{0:#,##0.00}") %>' />
                                </td>                               
                                <td>
                                    <asp:Button ID="btnMinus" runat="server" Text="-" CommandName="Minus" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                </td>
                            </tr>
                            </ItemTemplate>
                        </asp:Repeater>                        
                    </table>
                </td>
            </tr>               
        </table>
        <br />
         </div> 
        <div class="form-container" id="divContentDetails" runat="server">
        <table style="width:100%;" >
            <tr><td style="width:150px;"><div class="General-info-title"><h3>Details</h3></div></td>
            <td><div class="General-info-title-line"></div></td>
            </tr>
        </table>
        <table cellpadding="5" cellspacing="5" class="form-table">
            <tr>
                <th scope="row" style="width: 250px">
                    Title :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtTitle" runat="server" Width="300px" TextMode="MultiLine" Rows="2" /><span style="color: Red">*</span>
                    <asp:RequiredFieldValidator ID="rfvtxtTitle" ControlToValidate="txtTitle"
                        SetFocusOnError="true" runat="server" ValidationGroup="RenReport" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                    <asp:RequiredFieldValidator ID="rfvtxtTitleR" ControlToValidate="txtTitle"
                        SetFocusOnError="true" runat="server" ValidationGroup="Reminder" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Remarks :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtRemarks" runat="server" Width="300px" TextMode="MultiLine" Rows="4" /><span style="color: Red">*</span>
                    <asp:RequiredFieldValidator ID="rfvtxtRemarks" ControlToValidate="txtRemarks"
                        SetFocusOnError="true" runat="server" ValidationGroup="RenReport" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                    <asp:RequiredFieldValidator ID="rfvtxtRemarksR" ControlToValidate="txtRemarks"
                        SetFocusOnError="true" runat="server" ValidationGroup="Reminder" ErrorMessage="Required"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
            <tr id="trBoss" runat="server">
                <th scope="row" style="width: 250px">
                    Boss's Remarks :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtBossRemarks" runat="server" Width="300px" TextMode="MultiLine" Rows="4" />
                </td>
            </tr>             
        </table>
        <div class="Confirmation-Container">
        <table width="100%" style="margin-left:0px;">
                        <tr>
                            <td width=100%"><div class="General-info-title-line"></div></td>
                            <td style="min-width:150px;"> 
                                <asp:Button ID="btnBack" runat="server" Text="Back"  CssClass="search-btn" Width="60px"  />
                                <asp:Button ID="BtnSave" runat="server" Text="Save" ValidationGroup="Contactentry" CssClass="search-btn" Width="80px"  />
                                <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="search-btn" Width="80px" />                        
                                <cc1:ConfirmButtonExtender ID="CBEBack" runat="server" TargetControlID="btnBack" />
                                <cc1:ConfirmButtonExtender ID="CBEDelete" runat="server" TargetControlID="btnDelete" />
                            </td>
                            <td style="width: 60px"><div class="General-info-title-line"></div></td>
                        </tr>
                    </table>
                    <div class=" form-entry-title" style="line-height:15px; margin-bottom:0px; margin-top:15px;"><span style="color: Red; font-size:10px;">*Required fields</span></div>
   
   
    </div>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel> 
</asp:Content>

